package nl.ceasaro.jeslee.core.stock;

import nl.ceasaro.jeslee.core.model.clothes.Dress;
import nl.ceasaro.jeslee.core.service.AbstractService;
import nl.ceasaro.jeslee.core.stock.dao.DressDAO;
import nl.ceasaro.jeslee.core.dao.GenericDAO;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Collection;

/**
 * Created by IntelliJ IDEA.
 * User: cees
 * Date: Oct 17, 2008
 * Time: 9:44:56 PM
 * <p>
 * Service responsible of hanling the business logic concerning dresses.
 * </p>
 */
@Component
public class DressService extends AbstractService<Dress, Long>
{

   @Override
   public GenericDAO<Dress, Long> getDAO()
   {
      return getDressDAO();
   }
   /*
   * ******************************************
   * Spring injections
   * ******************************************
   */

   private DressDAO dressDAO;

   public DressDAO getDressDAO()
   {
      return dressDAO;
   }

   @Resource
   public void setDressDAO(DressDAO dressDAO)
   {
      this.dressDAO = dressDAO;
   }

}
